﻿using System;
using System.ServiceModel.Activation;
using System.Web;
using System.Web.Routing;
using IapService.Service;

namespace IapService
{
    public class Global : HttpApplication
    {
        void Application_Start(object sender, EventArgs e)
        {
            RegisterRoutes();
        }

        private void RegisterRoutes()
        {
            RouteTable.Routes.Add(new ServiceRoute("UserService", new WebServiceHostFactory(), typeof(UserService)));
            RouteTable.Routes.Add(new ServiceRoute("SampleService", new WebServiceHostFactory(), typeof(SampleService)));
            RouteTable.Routes.Add(new ServiceRoute("ImageService", new WebServiceHostFactory(), typeof(ImageService)));
            RouteTable.Routes.Add(new ServiceRoute("VectorService", new WebServiceHostFactory(), typeof(VectorService)));
            RouteTable.Routes.Add(new ServiceRoute("TagService", new WebServiceHostFactory(), typeof(TagService)));
            RouteTable.Routes.Add(new ServiceRoute("VectorTagService", new WebServiceHostFactory(), typeof(VectorTagService)));
            RouteTable.Routes.Add(new ServiceRoute("FillerService", new WebServiceHostFactory(), typeof(FillerService)));
            RouteTable.Routes.Add(new ServiceRoute("FavoriteService", new WebServiceHostFactory(), typeof(FavoriteService)));
            RouteTable.Routes.Add(new ServiceRoute("ClientService", new WebServiceHostFactory(), typeof(ClientService)));
            RouteTable.Routes.Add(new ServiceRoute("InstanceService", new WebServiceHostFactory(), typeof(InstanceService)));
            RouteTable.Routes.Add(new ServiceRoute("ClientLiteService", new WebServiceHostFactory(), typeof(ClientLiteService)));
            RouteTable.Routes.Add(new ServiceRoute("ClientInstanceService", new WebServiceHostFactory(), typeof(ClientInstanceService)));
            RouteTable.Routes.Add(new ServiceRoute("InstanceFavoriteService", new WebServiceHostFactory(), typeof(InstanceFavoriteService)));
            RouteTable.Routes.Add(new ServiceRoute("ReportService", new WebServiceHostFactory(), typeof(ReportService)));
        }
    }
}
